package com.lee.mybatis.dao;

import java.util.List;

import org.apache.ibatis.annotations.InsertProvider;
import org.springframework.stereotype.Repository;

import com.lee.basedao.common.BaseDao;
import com.lee.basedao.utils.MyBatisTemplate;
import com.lee.mybatis.model.UserEntity;
import com.lee.basedao.annotation.RegisterDto;

@Repository("userDao")
@RegisterDto(UserEntity.class)
public interface UserMapper extends BaseDao<UserEntity> {

	List<UserEntity> userListByPage();
	
	@InsertProvider(type = MyBatisTemplate.class,method = "insert")
	int addUser(UserEntity u);

}
